import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/order_apple_receipt_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class OrderAppleReceiptEntity {
	@JSONField(name: "order_id")
	String? orderId;
	@JSONField(name: "transaction_id")
	String? transactionId;
	String? status;

	OrderAppleReceiptEntity();

	factory OrderAppleReceiptEntity.fromJson(Map<String, dynamic> json) => $OrderAppleReceiptEntityFromJson(json);

	Map<String, dynamic> toJson() => $OrderAppleReceiptEntityToJson(this);

	OrderAppleReceiptEntity copyWith({String? orderId, String? transactionId, String? status}) {
		return OrderAppleReceiptEntity()
			..orderId= orderId ?? this.orderId
			..transactionId= transactionId ?? this.transactionId
			..status= status ?? this.status;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}